type crypto/internal/fips140/bigmod.choice
28 uses
crypto/internal/fips140/bigmod (current package)
nat.go#L33: type choice uint
nat.go#L35: func not(c choice) choice { return 1 ^ c }
nat.go#L37: const yes = choice(1)
nat.go#L38: const no = choice(0)
nat.go#L41: func ctMask(on choice) uint { return -uint(on) }
nat.go#L45: func ctEq(x, y uint) choice {
nat.go#L49: return not(choice(c1 | c2))
nat.go#L244: func (x *Nat) Equal(y *Nat) choice {
nat.go#L260: func (x *Nat) IsZero() choice {
nat.go#L275: func (x *Nat) IsOne() choice {
nat.go#L297: func (x *Nat) IsMinusOne(m *Modulus) choice {
nat.go#L304: func (x *Nat) IsOdd() choice {
nat.go#L308: return choice(x.limbs[0] & 1)
nat.go#L331: func (x *Nat) cmpGeq(y *Nat) choice {
nat.go#L343: return not(choice(c))
nat.go#L351: func (x *Nat) assign(on choice, y *Nat) *Nat {
nat.go#L635: needSubtraction = not(choice(borrow)) | choice(carry)
nat.go#L698: func (x *Nat) maybeSubtractModulus(always choice, m *Modulus) {
nat.go#L703: keep := not(choice(underflow)) | choice(always)
nat.go#L718: x.assign(choice(underflow), t)
nat.go#L741: x.maybeSubtractModulus(choice(overflow), m)
nat.go#L844: x.maybeSubtractModulus(choice(c), m)
nat.go#L862: x.maybeSubtractModulus(choice(c), m)
nat.go#L876: x.maybeSubtractModulus(choice(c), m)
nat.go#L890: x.maybeSubtractModulus(choice(c), m)
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)